// 设置微信标题
module.export = function (title) {
  document.title = title
  if (/ip(hone|od|ad)/i.test(navigator.userAgent)) {
    var i = document.createElement('iframe')
    i.src = '/favicon.ico'
    i.style.display = 'none'
    i.addEventListener('load', function () {
      setTimeout(function () {
        i.removeEventListener('load')
        document.body.removeChild(i)
      }, 4)
    }, false)
    document.body.appendChild(i)
  }
}
